package com.component.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.component.domain.MNoteSearch;
import com.component.service.MNoteSearchService;
import com.component.mapper.MNoteSearchMapper;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class MNoteSearchServiceImpl extends ServiceImpl<MNoteSearchMapper, MNoteSearch>
    implements MNoteSearchService{

    @Override
    public MNoteSearch getMNoteSearchByNid(String nid) {
        LambdaQueryWrapper<MNoteSearch> lambdaQueryWrapper=new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(MNoteSearch::getNid,nid);
        MNoteSearch mNoteSearch=this.baseMapper.selectOne(lambdaQueryWrapper);
        return mNoteSearch;
    }
}




